name: pre-commit run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit/bin:/opt/pyenv/bin:/tmp/venv-pGFU/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONHASHSEED: 2415252982 env PYTHONIOENCODING: utf-8 env TOX_ENV_DIR: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit env TOX_ENV_NAME: pre-commit env TOX_WORK_DIR: /w/workspace/integration-test-tox-verify-master/.tox env VIRTUAL_ENV: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit metadata pid: 2499 cwd: /w/workspace/integration-test-tox-verify-master allow: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit/bin/* cmd: pre-commit run --all-files --show-diff-on-failure exit_code: 1 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. [INFO] Initializing environment for https://github.com/PyCQA/flake8. [INFO] Initializing environment for https://github.com/psf/black. [INFO] Initializing environment for https://github.com/MarketSquare/robotframework-tidy. [INFO] Initializing environment for https://github.com/MarketSquare/robotframework-tidy:robotframework==6.1.1. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. [INFO] Initializing environment for local:rstcheck,sphinx. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/PyCQA/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/psf/black. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/MarketSquare/robotframework-tidy. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for local. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Passed flake8...................................................................Passed black....................................................................Failed - hook id: black - files were modified by this hook reformatted tools/clustering/cluster-deployer/deploy.py All done! ✨ 🍰 ✨ 1 file reformatted, 102 files left unchanged. robotidy.................................................................Passed rstcheck.................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/tools/clustering/cluster-deployer/deploy.py b/tools/clustering/cluster-deployer/deploy.py index d5bde645..88157e48 100755 --- a/tools/clustering/cluster-deployer/deploy.py +++ b/tools/clustering/cluster-deployer/deploy.py @@ -213,7 +213,8 @@ class Deployer: conf_tpl = f"{self.cluster_system}.conf.template" conf_out = f"{self.cluster_system}.conf" system_conf = renderer.render( - conf_tpl, conf_out, + conf_tpl, + conf_out, { "HOST": self.host, "MEMBER_NAME": "member-" + str(self.member_no), @@ -270,7 +271,9 @@ class Deployer: # Copy all the generated files to the server self.remote.mkdir(self.dir_name + "/odl/configuration/initial") - self.remote.copy_file(system_conf, self.dir_name + "/odl/configuration/initial/") + self.remote.copy_file( + system_conf, self.dir_name + "/odl/configuration/initial/" + ) self.remote.copy_file( module_shards_conf, self.dir_name + "/odl/configuration/initial/" ) @@ -316,7 +319,9 @@ def main(): ds_seed_nodes.append( f"{args.cluster_system}.tcp://opendaylight-cluster-data@{hosts[x]}:2550" ) - rpc_seed_nodes.append(f"{args.cluster_system}.tcp://odl-cluster-rpc@{hosts[x]}:2551") + rpc_seed_nodes.append( + f"{args.cluster_system}.tcp://odl-cluster-rpc@{hosts[x]}:2551" + ) all_replicas.append("member-" + str(x + 1)) for x in range(0, 10):